* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ================= SERVICES SECTION ================= */

.services {
    padding: 70px 5%;
    background: #f9f9f9;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 700;
    color: black;
}

.services h2 span {
    color: red;
    position: relative;
}

.services h2 span::after {
    content: "";
    width: 55px;
    height: 3px;
    background: red;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ================= GRID ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* DESKTOP: 4 BOX */
    gap: 25px;
}

/* ================= SERVICE BOX ================= */

.service-box {
    background: #ffffff;
    padding: 35px 25px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    animation: fadeUp 0.9s ease forwards;
}

.service-box::after {
    content: "";
    width: 0;
    height: 3px;
    background: red;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.4s ease;
}

.service-box:hover::after {
    width: 100%;
}

.service-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ================= ICON ================= */

.icon {
    width: 65px;
    height: 65px;
    background: #ffe5e5;
    color: red;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 26px;
    transition: all 0.4s ease;
}

.service-box:hover .icon {
    background: red;
    color: #ffffff;
    transform: rotate(360deg);
}

/* ================= TEXT ================= */

.service-box h3 {
    font-size: 19px;
    margin-bottom: 14px;
    font-weight: 600;
    color: black;
}

.service-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ================= ANIMATION ================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

/* TABLET – optional (still ok if 2 boxes) */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services h2 {
        font-size: 30px;
    }
}

/* MOBILE / PHONE – 100% 1 BOX PER ROW */
@media (max-width: 575px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .services {
        padding: 50px 6%;
    }

    .services h2 {
        font-size: 26px;
    }

    .service-box {
        padding: 30px 20px;
    }
}


/* product section */
/* ================= TESTIMONIAL SECTION ONLY ================= */

#testimonial-section {
    padding: 80px 6%;
}

#testimonial-section .ts-heading {
    font-size: 32px;
    margin-bottom: 45px;
    color: red;
    text-align: center;
}
#testimonial-section .ts-heading span{
    color: black;
}


/* GRID */
#testimonial-section .ts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */
#testimonial-section .ts-card {
    position: relative;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    animation: tsFadeUp 0.9s ease forwards;
}

/* IMAGE */
#testimonial-section .ts-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* OVERLAY */
#testimonial-section .ts-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(0px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #fff;
    opacity: 0;
    transform: translateY(45px);
    transition: all 0.5s ease;
}

#testimonial-section .ts-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

#testimonial-section .ts-overlay p {
    font-size: 14px;
    line-height: 1.5;
}

/* HOVER EFFECT */
#testimonial-section .ts-card:hover img {
    transform: scale(1.1);
}

#testimonial-section .ts-card:hover .ts-overlay {
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(6px);
}

/* ANIMATION */
@keyframes tsFadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE (SECTION SAFE) */
@media (max-width: 900px) {
    #testimonial-section .ts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    #testimonial-section .ts-grid {
        grid-template-columns: 1fr;
    }
}